package Test;

import handler.FileHandler;
import pojo.InventoryInfo;
import pojo.Transaction;

import java.util.List;

public class FileHanderTest {
    public static void main(String[] args) {
        // Test inventory data insertion
        List<InventoryInfo> inventoryList = FileHandler.inventoryFileHandler("inventory_info.txt");
        //输出
        for (InventoryInfo inventoryInfo : inventoryList) {
            System.out.println(inventoryInfo);
        }
        // Test transaction data insertion
        List<Transaction> transactionList = FileHandler.transactionFileHandler("transaction.txt");
        //输出
        for (Transaction transaction : transactionList) {
            System.out.println(transaction);
        }
    }
}
